Report post

What is an HTML redirect?

An HTML redirect (also sometimes called a meta refresh or meta redirect) is a way of redirecting one HTML page to another in the HTML source code. An HTML redirect includes instructions in the section of the document that tell the web browser to automatically refresh a different page, with an optional time delay before the refresh occurs.

Can a redirect URL be relative?

Redirect url in above method can be relative. e.g: you want to redirect to Login page or any relative page by index.html in root of website. don't need to know your domain name. but when you set window.location.href="xxx"; you must know domain name.

How do I create a redirect?

HTTP redirects are the best way to create redirections, but sometimes you don't have control over the server. In that case, try a element with its http-equiv attribute set to Refresh in the of the page. When displaying the page, the browser will go to the indicated URL.

What does meta> mean in HTML redirect?

In an HTML redirect, the tag contains two attributes, http-equiv and content. The value of http-equiv is always refresh — this tells the browser that you want to automatically refresh the page. delay_time is a numeric value that sets the delay before the browser loads the new web page.

Related articles

The World's Leading Crypto Trading Platform

Get my welcome gifts